﻿Shader "My/Mask"
{
    Properties
    {
        _StencilRef ("StencilRef", Int) = 1
    }
    SubShader
    {
        Tags { "RenderType"="Opaque" }

        Pass
        {
            Stencil
            {
                Ref [_StencilRef]
                Comp always
                Pass replace
                
            }
            ColorMask 0
        }
    }
}
